<%--
  Created by IntelliJ IDEA.
  User: 86186
  Date: 2021/12/29
  Time: 8:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.js"></script>
    <script src="/js/info.js"></script>
    <script src="../js/bootstrap-table-zh-CN.min.js"></script>
    <script>
        function sc (value) {
            console.log(value)
            alert("您确定要删除吗")
        }

        //修改方法
        function xg() {
            document.getElementById("kk").innerText="修改商品"
        }

        //添加方法
        function tj() {
            document.getElementById("kk").innerText="添加商品"
        }
    </script>
</head>
<body>


<div class="container">
    <div class="row">
        <form class="form-inline">
            <div>
                <input class="form-control" id="sname"/>
                <select class="form-control" id="tid">
                    <option value="0">请选择</option>
                    <option value="1">口红</option>
                    <option value="2">粉底液</option>
                    <option value="3">眉笔</option>
                    <option value="4">眼线笔</option>
                    <option value="5">美瞳</option>
                </select>
                <input class="form-control" type="date"/>
                <input class="form-control" type="date"/>
               <input class="btn btn-primary" onclick="cx()" type="button" value="查询" id="cx"/>
            </div>
        </form>
    </div>

    <div class="row">
        <div class="col-10">
        </div>
        <div class="col-2">
        <button class="btn btn-primary" data-toggle="modal" data-target="#myModal" onclick="tj()">添加</button>
        </div>

        <div class="modal fade" id="myModal">
            <div class="modal-dialog">
                <div class="modal-content">

                    <!-- 模态框头部 -->
                    <div class="modal-header">
                        <h4 class="modal-title" id="kk">添加商品</h4>
                        <button type="button" class="close" shdata-dismiss="modal" aria-hidden="true">&times;</button>
                    </div>

                    <!-- 模态框主体 -->
                    <div class="modal-body">
                        <form>
                            <div class="form-group">
                                <label for="email">商品名称:</label>
                                <input type="text" class="form-control" id="email">
                            </div>
                            <div class="form-group">
                                <label>商品种类:</label>
                                <select class="form-control">
                                    <option value="0">请选择</option>
                                    <option value="1">口红</option>
                                    <option value="2">粉底液</option>
                                    <option value="3">眉笔</option>
                                    <option value="4">眼线笔</option>
                                    <option value="5">美瞳</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label>商品颜色:</label>
                                <input type="text" class="form-control">
                            </div>
                            <div class="form-group">
                                <label>商品产地:</label>
                                <input type="text" class="form-control">
                            </div>
                            <div class="form-group">
                                <label>商品价格:</label>
                                <input type="text" class="form-control">
                            </div>
                            <div class="form-group">
                                <label>商品库存:</label>
                                <input type="text" class="form-control">
                            </div>

                            <button type="submit" class="btn btn-primary" >确定</button>
                            <button type="submit" class="btn btn-default">取消</button>

                        </form>
                    </div>

                </div>
            </div>
        </div>
    </div>

    <div class="row">
            <table class="table table-hover table-bordered" id="table">
            </table>
    </div>
</div>


</body>
</html>
